#include <string.h>
#include <stdio.h>

int main() {
	char s[100];
	gets(s);
	int i;
	for (i = 0; i < strlen(s); i++) {
		if (s[i] > '0' && s[i] <= '9') {
			printf("%c", s[i]);
			while (s[++i] >= '0' && s[i] <= '9') {
				printf("%c", s[i]);
			}
			printf("    ");
		} else if (s[i] == '0') {
			if (s[i + 1] >= '0' && s[i + 1] <= '9') {
				continue;
			} else {
				printf("0");
			}
			printf("    ");
		}
	}
}
